package edu.sctu.zhengsenwen.month201506.day20150614.lock;

/**
 * Created by user15 on 2015/6/15.
 */
public class PutClass extends Thread {

    private SynchronizingClass shareClass;

    public PutClass(SynchronizingClass synchronizingClass) {

        shareClass = synchronizingClass;
    }

    public void start() {

        for (int i = 0; i < 10; i++) {

            shareClass.put(i);
        }
    }
}
